package dws_tb

import (
	"github.com/gin-gonic/gin"
	"server/middleware"
)

type DwsTbRouter struct {
}


func (s *DwsTbRouter) InitDwsTbRouter(Router *gin.RouterGroup) {
	dwsTbRouter := Router.Group("dwsTb").Use(middleware.OperationRecord())
	dwsTbRouterWithoutRecord := Router.Group("dwsTb")
	var dwsTbApi = DwsTbApi{}
	{
		dwsTbRouter.POST("createDwsTb", dwsTbApi.CreateDwsTb)
		dwsTbRouter.DELETE("deleteDwsTb", dwsTbApi.DeleteDwsTb)
		dwsTbRouter.DELETE("deleteDwsTbByIds", dwsTbApi.DeleteDwsTbByIds)
		dwsTbRouter.PUT("updateDwsTb", dwsTbApi.UpdateDwsTb)
	}
	{
		dwsTbRouterWithoutRecord.GET("findDwsTb", dwsTbApi.FindDwsTb)
		dwsTbRouterWithoutRecord.GET("getAllDwsTbs", dwsTbApi.GetAllDwsTbs)
		dwsTbRouterWithoutRecord.GET("getDwsTbList", dwsTbApi.GetDwsTbList)
		dwsTbRouterWithoutRecord.POST("getDwsTb", dwsTbApi.GetDwsTb)
		dwsTbRouterWithoutRecord.GET("initDwsTb", dwsTbApi.InitDwsTb)
	}
}
